package com.smartadmin.module.business.people;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.smartadmin.common.domain.PageParamDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class People extends PageParamDTO {

    @ApiModelProperty("主键id")
    private String userId;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("用户姓名")
    private String actualName;

    @ApiModelProperty("手机号码")
    private String phone;

    @ApiModelProperty("身份证")
    private String idCard;

    @ApiModelProperty("出生日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthday;

    @ApiModelProperty("创建者")
    private String createUser;

    @ApiModelProperty("登录IP")
    private String loginIp;

    @ApiModelProperty("部门id")
    private Long departmentId;

    @ApiModelProperty("部门名称")
    private String departmentName;
    private String[] departmentNames;

    @ApiModelProperty("岗位id")
    private String positionId;

    @ApiModelProperty("岗位名称")
    private String positionName;

    @ApiModelProperty("是否离职")
    private String isLeave;

    @ApiModelProperty("是否被禁用")
    private String isDisabled;

    @ApiModelProperty("是否被禁用(用于显示中文)")
    private String isDisabledShow;

    @ApiModelProperty("是否删除")
    private String isDelete;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty("备注")
    private String remark;

    private String startTime;
    private String endTime;

    private String keyWord; // 关键字搜索

}
